<template>
    <div id="demo-index">
        {{ demo }}
        <el-button type="primary" @click="btn">主要按钮</el-button>
    </div>
</template>

<script>
export default {
    name: 'demo-index',
    data () {
        return {
            demo: '测试demo'
        }
    },
    created () {
        console.log('created')
    },
    mounted () {
        console.log(13)
    },
    methods: {
        btn () {
            this.$router.push({ name: 'demoTwo' })
        }
    }
}
</script>

<style lang="less">
</style>
